import React, { Component } from 'react';
import defaultImage from '@assets/img/picture.png';

class Image extends Component {
  render() {
    const { getData, getStyle } = this.props;
    return <img style={getStyle()} src={getData('src') || defaultImage} alt={getData('alt')} />;
  }
}

export default Image;
